import pyautogui as gui
import time
try:
    while 1:
        x,y=gui.position()
        print(x,y)
        time.sleep(0.3)
except KeyboardInterrupt:
    print("\n程序运行结束")
